/*
 * producer.c
 *
 *  Created on: Mar 6, 2013
 *      Author: abrahamsantini
 */
#include "producer.h"
#include "semaphore.h"
#include "sharedMemory.h"
#include <stdio.h>

int init_producer(producer_t *prod, sharedMemory_t *the_sm){
	prod->next_instr = 0;
	prod->sm = the_sm;
	prod->num_of_cycles = 0;

	return 0;
}


